<div id="footerbar">
<ul>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footerbar') ) : else : ?>
<li>
<h3>About</h3>
  <div>
    <p class="about_author">
      <strong><?php bloginfo( 'name' ); ?></strong>
      <br/>
      <?php echo get_avatar( get_the_author_email(), '72' ); ?>
      <?php the_author_meta( 'description' ); ?>
      <br class="clear" />
    </p>
  </div>
</li>
   <li>
      <h3>Categories</h3>
      <ul>
        <?php wp_list_categories('orderby=name&show_count=1&hierarchical=1&title_li='); ?>
      </ul>
  </li>
  <li>
    <h3>Recent Entries</h3>
    <ul>
    <?php
    $myposts = get_posts('numberposts=6&offset=0&category=0');
    foreach($myposts as $post) :
    setup_postdata($post);
    ?>
    <li><span class="alignright"><?php comments_number('(0)','(1)','(%)'); ?></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>
</li>  

  <?php endif; ?>
  </ul>
 </div>
